<?php	
include_once('parametros.php');	
	session_start();	
	if (!empty($_SESSION['correo'])){
		$session=true;				
		$nomUsuario=$_SESSION['nomUsu'];		
		$usuRol=$_SESSION['usuRol'];								
		$ultAcceso=$_SESSION['ultAcc'];
		$usuEstado=$_SESSION['usuEst'];
		$session=$_SESSION['sessionId'];				
		$itemSession=$_SESSION['itemSession'];
		$codUsuario=$_SESSION['codUsuario'];																				
	}else{
		$session=false;
	}	
 if ($session==true){
 ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="css/calendar.css" title="dark" type="text/css" media="screen" />

<script type="text/javascript" src="js/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/maskeinput.js"></script>
<script type="text/javascript" src="js/splitter.js"></script>
<script type="text/javascript" src="js/function.js"></script>

<script type='text/javascript' src='js/jquery.autocomplete.min.js'></script>
<link rel="stylesheet" type="text/css" href="css/jquery.autocomplete.css" />


<script type="text/javascript">

$(document).ready(function() {
	$("#fecCarta").mask("99/99/9999");
	$("#fecRecepcion").mask("99/99/9999");
	
	$("#splitterContainer").splitter({minAsize:100,maxAsize:300,splitVertical:true,A:$('#leftPane'),B:$('#rightPane'),slave:$("#rightSplitterContainer"),closeableto:0});
	$("#rightSplitterContainer").splitter({splitHorizontal:true,A:$('#rightTopPane'),B:$('#rightBottomPane'),closeableto:100});
});
</script>
</head>

<body>
<?php
	$item= isset($_GET['item']) ? $_GET['item'] : null ;
	$tipo= isset($_GET['tipo']) ? $_GET['tipo'] : null ;	
if ($item!='Admin'){
?>
<div id="header">
	<div id="splitterContainer">
	
		<div id="rightPane">
			<div id="rightSplitterContainer" style="height:100%">
				<div id="rightTopPane">
				<?php 
				include('vista/cartas/index.php');
				?>
				</div>
				<div id="rightBottomPane">
					<div>
				<?php 
				include('vista_carta.php');
				?>
					</div>
				</div>
				</div>
			</div>
		</div>
	</div>
</div>
<?php }else{
?>
<div id="header">
	<?php 
	if($tipo==1){//Mantenimiento de Usuarios
		include('vista/usuarios/index.php');
	}
	?>
</div>
<?php }?>
</body>

</html>
 <?php } 
?>